package org.news.web.domain;

import org.dromara.common.mybatis.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serial;

/**
 * 评论对象 comments
 *
 * @author Gu Ci
 * @date 2024-04-03
 */
@Data
@TableName("comments")
public class Comments {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 评论ID
     */
    @TableId(value = "comment_id",type = IdType.AUTO)
    private Long commentId;

    /**
     * 父评论ID
     */
    private Long parentCommentId;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 新闻ID
     */
    private Long newsId;

    /**
     * 评论内容
     */
    private String content;

    /**
     * 记录创建时间
     */
    private Date creationTime;

    /**
     *记录更新时间
     */
    private Date updateTime;


}
